<body>
  <weui-loadmore [type]="type" *ngIf="!first"></weui-loadmore>
  <div *ngIf="first == true">
    <div class="userimg">
      <img src="assets/img/momentloader.png">
      <p>我爱永川</p>
    </div>
    <div class="weui-grids home-content">
      <a routerLink="" class="weui-grid js_grid model">
        <div class="weui-grid__icon">
          <img src="assets/img/userhome/wait.svg">
        </div>
        <p class="weui-grid__label">
          排队叫号
        </p>
      </a>
      <a routerLink="/outpatientpay" class="weui-grid js_grid model">
        <div class="weui-grid__icon">
          <img src="assets/img/userhome/outpatientpay.svg">
        </div>
        <p class="weui-grid__label">
          门诊缴费
        </p>
      </a>
      <a routerLink="" class="weui-grid js_grid model">
        <div class="weui-grid__icon">
          <img src="assets/img/userhome/inhosppay.svg">
        </div>
        <p class="weui-grid__label">
          住院预交
        </p>
      </a>
    </div>
    <div class="weui-cells contentlist">
      <a class="weui-cell weui-cell_access" routerLink="/appointrecord/appointrecord">
        <div class="weui-cell__bd">
          <img src="assets/img/userhome/appointrecord.svg">
          <p weui-type="default">预约记录</p>
        </div>
        <div class="weui-cell__ft">
        </div>
      </a>
      <a class="weui-cell weui-cell_access" (click)="gomedicalrecords()">
        <div class="weui-cell__bd">
          <img src="assets/img/userhome/outpatientrecord.svg">
          <p weui-type="default">就医记录</p>
        </div>
        <div class="weui-cell__ft">
        </div>
      </a>
      <a class="weui-cell weui-cell_access" (click)="goinspections()">
        <div class="weui-cell__bd">
          <img src="assets/img/userhome/outpatientinspect.svg">
          <p weui-type="default">检查记录</p>
        </div>
        <div class="weui-cell__ft">
        </div>
      </a>
      <a class="weui-cell weui-cell_access" (click)="gopatientpayrecord()">
        <div class="weui-cell__bd">
          <img src="assets/img/userhome/outpatientpayrecord.svg">
          <p weui-type="default">交费记录</p>
        </div>
        <div class="weui-cell__ft">
        </div>
      </a>
      <a class="weui-cell weui-cell_access" (click)="simplePopup.show()">
        <div class="weui-cell__bd">
          <img src="assets/img/userhome/patient.svg">
          <p weui-type="default">就诊人管理</p>
        </div>
        <div class="weui-cell__ft">
        </div>
      </a>
    </div>
  </div>

  <!-- <div *ngIf="first===true" footer class="weui-footer" style="padding-top: 45%">
  <p class="weui-footer__text">技术支持</p>
  <p class="weui-footer__text">©重庆钜元大数据有限公司</p>
</div> -->
  <weui-popup #simple (confirm)="confirm()" (cancel)="cancel()" [config]="{backdrop:false}">

    <div style="height: 200px; margin-top: 0px;">
      <div class="weui-cells weui-cells_radio" style="margin-top:0px;">
        <label class="weui-cell weui-check__label" for="radio-{{i.id}}" *ngFor="let i of radio;let index=index">
          <div class="weui-cell__bd" (click)="check()">
            <p>{{i.name}}</p>
          </div>
          <div class="weui-cell__ft">
            <input type="radio" class="weui-check" [(ngModel)]="res.radio" name="radio" [value]="i" id="radio-{{i.id}}">
            <span *ngIf="icon" class="weui-icon-checked"></span>
            <img (click)="editPatient()" *ngIf="!icon" src="assets/img/icon-edit.png" height="24" />
          </div>
        </label>
      </div>
      <div style="border-top: 1px green solid;width: 100%;position:fixed;bottom:0px;height: 35px" *ngIf="icon">
        <a class="label" style="margin-left: 40%;" routerLink="/patient/addpatient">新增就诊人</a>
      </div>
    </div>
  </weui-popup>
</body>